/**
 * Created by Administrator on 2017/3/13.
 */
(function($){
    /*导航下拉*/
    function SlideDown(opt){
        if(!opt) return;
        this.$btn=opt.btn;
        this.$list=this.$btn.find("div");
        this.$span=this.$btn.find("span");
        this.init();
    }
    SlideDown.prototype={
        constructor:SlideDown,
        init:function(){
            this.hoverEvent();
        },
        hoverEvent:function(){
            var _self=this;
            this.$btn.hover(function(){
                _self.$span.addClass("active");
                _self.$list.stop(true,true).slideDown(200);
            },function(){
                _self.$span.removeClass("active");
                _self.$list.stop(true,true).slideUp(200);
            });
        }
    };

    var navList=$(".show_list");
    for(var i=0,iLen=navList.length;i<iLen;i++){
        new SlideDown({
            btn:navList.eq(i)
        });
    }
})(jQuery);



jQuery.extend(jQuery.easing,{
    easeInOutQuint: function (x, t, b, c, d) {
        if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
        return c/2*((t-=2)*t*t*t*t + 2) + b;
    }

});